//
//  NIBaseObject.h
//  AIWAYS
//
//  Created by Marx on 2018/7/31.
//  Copyright © 2018年 wlq. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <objc/runtime.h>

@interface NIBaseObject : NSObject



/**
 网络请求对应关系

 @return 字典
 */
+ (NSDictionary *)modelCustomPropertyMapper;


/**
 将对象转换成字典

 @return 字典
 */
- (NSDictionary *)getDicFromObject;

#pragma mark - 以下为数据库相关

//映射关系
@property(nonatomic)NSDictionary *attributeMapDictionary;
//对象转字典
- (NSDictionary *)dictionaryRepresentation;
//字典转对象
- (id)initWithDictionary:(NSDictionary *)dictionary;

- (NSDictionary *)getMapDictionary;

- (void)setAttributesDictionary:(NSDictionary *)attributesDictionary;


@end
